package example.service.impl;

import example.dao.orderMapper;
import example.entity.Goods;
import example.entity.Orderdetail;
import example.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class OrderServiceImpl implements OrderService {

    @Resource
    example.dao.orderMapper orderMapper;
    @Override
    public List<Goods> findall() {
        return orderMapper.findAll() ;
    }

    @Override
    public List<Orderdetail> finddall() {
        return orderMapper.findAlld();
    }

    @Override
    public int deleteById(Integer id) {
        return orderMapper.deleteById(id);
    }
}
